<?php
	echo "<ul style = 'width: 100%; '>";
	
	echo '	<li class="mainbox white-corners">
    			<div class="box-header clear">
					<div class="box-title-blue fl_left">'.Language::Get('Statistics (summary)').'</div>
					<div class="box-control fl_right"></div>
				</div>
				<div class="" id="staff_box" style = "text-align: left; ">
					<div class="" id="users-contain" style="width: 100%">
						<table class="simple-table patients-list" id="users" style="width: 100%; ">';
	echo "					<tbody>
					    		<tr>
					    			<td class = 'label'>".Language::Get('Reward').":</td>
					    			<td class = 'data'>".round($this->data[$this->name]['reward'], 2)."</td>
					    		</tr>
					    		<tr>
					    			<td class = 'label'>".Language::Get('Gold hits rejected').":</td>
					    			<td class = 'data'>{$this->data[$this->name]['goldHITsRejected']}</td>
					    		</tr>
					    		<tr>
					    			<td class = 'label'>".Language::Get('Gold hits total').":</td>
					    			<td class = 'data'>{$this->data[$this->name]['goldHITsTotal']}</td>
					    		</tr>
					    		<tr>
					    			<td class = 'label'>".Language::Get('Hits rejected').":</td>
					    			<td class = 'data'>{$this->data[$this->name]['hitsRejected']}</td>
					    		</tr>
					    		<tr>
					    			<td class = 'label'>".Language::Get('Hits total').":</td>
					    			<td class = 'data'>{$this->data[$this->name]['hitsTotal']}</td>
					    		</tr>
    						</tbody>
						</table>
					</div>
				</div>
			</li>	
	";
	
	//detailed stats
	echo "
			<li class='mainbox white-corners'>
					<div class='box-header clear'>
						<div class='box-title-blue fl_left'>Statistics (detailed) - DEMO</div>
						<div class='box-control fl_right'></div>
					</div>
					<div class='box-cnt'>
						<table class='simple-table patients-list' cellspacing='0'>
							<thead>
								<tr>
									<th scope='col'>Date/time</th>
									<th scope='col'>Worker</th>
									<th scope='col'>Campaign</th>
									<th scope='col'>Qualification</th>											
									<th scope='col' style = 'width: 80px; '>Details</th>											
								</tr>
							</thead>
							<tbody>";
	                    		foreach ($this->data['stats'] as $stat)
			                    {
			                        echo "
			    						<tr>
			    							<td scope='row'>{$stat['date']}</td>
			    							<td>{$stat['worker']}</td>
			    							<td>{$stat['campaign']}</td>
			    							<td>{$stat['qualification']}</td>
			    							<td style = 'text-align: center; '>";
				                        		XHTML::Anchor('#', Language::Get('Details', 'CAPITALIZE'), array
				                                (
					                                'class' => 'edit-box',
					                                'onclick' => ''
				                                ));
			                        echo "	</td>
			    						</tr>
			                        ";
			                    }
	echo "					</tbody>
						</table>";
						echo HtmlsHelper::Pagination('50');
	echo "			</div>
			</li>
		</ul>";
?>